﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TrexSpace.Business
{
    public interface IRepository
    {


        //Post 
        IQueryable<Post >AllPosts();
        IQueryable<Post> FindPostsByUser(string userCredentials);
        Post GetPost(string  id);
        void AddPost(Post post);
        void DeletePost(Post post);
        
     

        //category
        IQueryable<Category> AllCategories();
        void AddCategory(string ParentCategory, string newCategoryName);
        void DeleteCategory(Category category);

        void Save();
    }
}
